package main

import (
	"fmt"
	service "go_code/project01_basic/chapter10_projectDemo/project02_customerManagerSystem/customerService"
)

func main() {
	var customers service.CustomerService
	var key string
	for !customers.Flag {
		fmt.Println("----------客户管理软件----------")
		fmt.Println("		1、添加客户")
		fmt.Println("		2、修改客户")
		fmt.Println("		3、删除客户")
		fmt.Println("		4、客户列表")
		fmt.Println("		5、退    出")
		fmt.Println("				请输入选项1-5")
		fmt.Scanln(&key)
		switch key {
		case "1":
			customers.AddCustomer()

		case "2":
			customers.ChangeCustomer()
		case "3":
			customers.DeleteCustomer()
		case "4":
			customers.CustomerList()
		case "5":
			customers.Exit()
		default:
			fmt.Println("输入选项有误")
			fmt.Println(key)
		}
	}
}
